/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package is202.jsfdemo;

import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;

/**
 *
 * @author Yoloswag
 */
@Named(value = "test")
@SessionScoped
public class TestBean implements Serializable {

    private String testN;
    /**
     * Creates a new instance of TestBean
     */
    public TestBean() {
    }
    
    public String getTest(){
        return testN;
    }
    
    public void setTest(String testN){
        this.testN = testN;
    }
    
    public String testFunc(){
        
        this.testN +=  "this is test";
        return this.testN;
    }
    
    public String testFuncTwo(){
        
        this.testN += " Test should have two extensions now!";
        return this.testN;
    }
    
    
}
